home *** CD-ROM | disk | FTP | other *** search
/ Kit PC World De Ampliacion De Windows 95 / Kit PC World de ampliacion de Windows 95.iso / internet / sweeper / bin / iptool.txt < prev    next >
Text File  |  1995-12-04  |  4KB  |  94 lines

  1. IPTOOL readme.txt
  2.  
  3. Description:
  4. ============
  5.  
  6. IPTOOL.EXE is a utility for creating property stream files and HTML tags for
  7. embedding OLE objects in web documents.
  8.  
  9.  
  10. BACKGROUND:
  11. ===========
  12.  
  13. First, a little background.  Internet Explorer supports two different types of
  14. OLE embeddings.  The first type requires no initialization data when created.
  15. This type of embedding can be created by simply specifying the CLSID of the
  16. object in an INSERT tag.  Optionally, it is usually a good idea to also provide
  17. a WIDTH and HEIGHT:
  18.  
  19. <INSERT CLSID="{C932BA85-4374-101B-A56C-00AA003668DC}" WIDTH=300 HEIGHT=200>
  20.  
  21. The second (and more interesting) type of control requires a set of data for
  22. initialization purposes.  Internet Explorer defines a format for a stream of
  23. data which is used to initialize a control:
  24.  
  25. |16 byte CLSID|     rest of persistent data   |
  26.  
  27. This is a stream where the first 16 bytes contains the CLSID of the object, 
  28. and the rest of the stream contains initialization data for the control.  The
  29. initialization data is created by calling the control's IPersistStream::Save
  30. method.  This type of embedding can be specified in HTML as (for example):
  31.  
  32. <INSERT WIDTH=300 HEIGHT=200 PERSISTSTREAMSRC="D:\ipsfiles\foo.ips"
  33.  
  34. Note:  It is not necessary to specify the CLSID separately when using the
  35. PERSISTSTREAMSRC attribute of the INSERT tag.
  36.  
  37.  
  38. USAGE:
  39. ======
  40.  
  41. To use iptool, launch the application and choose "Edit | Insert New Control".
  42. This will bring up the standard OLE insert object dialog.  Make sure to select
  43. the radio button labeled "Insert control" to get a listing of the OLE controls
  44. available on your system.  Choose one of the controls.
  45.  
  46. The control should appear in the iptool window.  Resize the control to the
  47. desired dimensions and select "Properties | Properties" to bring up the 
  48. property pages for the control.  Set any properties you desire and press OK
  49. on the property page dialog.
  50.  
  51. At this point, you are ready to generate the property stream file.  Choose
  52. "Properties | Save Content".  This will bring up another dialog.  You will
  53. notice that many of the controls are disabled for now.  However, you can
  54. assign an ID to the control and specify whether the CLSID should be included
  55. in the HTML.  If you also want to generate a property stream file, make sure
  56. to select the radio button labeled "Property file"  Press OK on the dialog.
  57.  
  58. If you have chosen to create a property file, a file "Save As" dialog will
  59. appear.  Save the file in the location and name of your choosing.  
  60.  
  61. The Appropriate HTML has been automatically generated and placed on the
  62. clipboard for you.  Simply open the source for a web page and insert the
  63. contents of the clipboard.
  64.  
  65.  
  66. CAVEATS to IPTOOL.EXE
  67. ======================
  68.  
  69.  
  70. 1) In the Insert Object dialog box, the "Create New" and "Create from File"
  71. radio buttons are not supported.
  72.  
  73.     -Users should choose the "Insert Control Dialog" radio button only.
  74.  
  75.  
  76. 2) In the Insert Object dialog box, when choosing the "Insert Control Dialog"
  77. radio button, the "Add Control" command button does not work.
  78.  
  79.     -Users should choose only from list presented in "Object Type" window.
  80.  
  81.  
  82. 4) Your OCX will not show up in the "Object Type" window unless it is 
  83. marked as insertable.
  84.  
  85.     -Run regsvr32 <ocx name>
  86.     -Run regedit.exe
  87.     -Look in MyComputer\HKEY_CLASSES_ROOT\<ocx name>
  88.     -Add the Key "Insertable" as a subkey under <ocx name> 
  89.     -Note: "CLSID" should already be present as subkey to <ocx name>.
  90.  
  91.     -Within "Insertable" Key, leave Name to (Default) and Data to "".
  92.  
  93.     -Note: Most VB4.0 OCXs are registered without the "Insertable" key
  94.      statement.